package org.zxp.designpattern.facade;

/**
 * @program: effectiveJava
 * @description:
 * @author: X-Pacific zhang
 * @create: 2019-08-24 13:16
 **/
public class ServerFacade {
    ServerOne serverOne;
    ServerTwo serverTwo;
    ServerThree serverThree;

    public ServerFacade(){
        serverOne = new ServerOne();
        serverTwo = new ServerTwo();
        serverThree = new ServerThree();
    }


    public void service1(){
        serverOne.service1();
    }

    public void service2(){
        serverTwo.service2();
    }

    public void service3(){
        serverThree.service3();
    }

    public void service4(){
        serverThree.service4();
    }

    public void service5(){
        serverThree.service5();
    }
}
